Ext.namespace('Ext.youth');
	Ext.youth.getSexgroups=function(){
		var sexGroups=[
						{boxLabel:'男性',name:'person.sex',inputValue:1,checked:true},
						{boxLabel:'女性',name:'person.sex',inputValue:2}
					];
		return sexGroups;
	};
	Ext.youth.getCheckBoxGroups=function( dynamicName){
		var checkboxItems=[
				{boxLabel:'符合',    name:dynamicName,inputValue:1,checked:true},
				{boxLabel:'较符合',  name:dynamicName,inputValue:2},
				{boxLabel:'说不清',  name:dynamicName,inputValue:3},
				{boxLabel:'不太符合',name:dynamicName,inputValue:4},
				{boxLabel:'不符合',  name:dynamicName,inputValue:5}		
		];
		return checkboxItems;
	};
	Ext.youth.getCheckBoxGroups2=function( dynamicName){
		var checkboxItems=[
				{boxLabel:'非常符合',    name:dynamicName,inputValue:1,checked:true},
				{boxLabel:'较符合',  name:dynamicName,inputValue:2},
				{boxLabel:'说不清',  name:dynamicName,inputValue:3},
				{boxLabel:'不太符合',name:dynamicName,inputValue:4},
				{boxLabel:'不符合',  name:dynamicName,inputValue:5}		
		];
		return checkboxItems;
	};
	Ext.youth.getImportenceGroups=function( dynamicName){
		var checkboxItems=[
				{boxLabel:'非常重要',    name:dynamicName,inputValue:1,checked:true},
				{boxLabel:'较重要',  name:dynamicName,inputValue:2},
				{boxLabel:'说不清',  name:dynamicName,inputValue:3},
				{boxLabel:'不太重要',name:dynamicName,inputValue:4},
				{boxLabel:'不重要',  name:dynamicName,inputValue:5}		
		];
		return checkboxItems;
	};	
	Ext.youth.timeRadioBoxGroup=function(dynamicName){
		var radioGroupItems=[
				{boxLabel:'没有',    name:dynamicName,inputValue:1,checked:true},
				{boxLabel:'1 h',  name:dynamicName,inputValue:2},
				{boxLabel:'2-3h',  name:dynamicName,inputValue:3},
				{boxLabel:'4-5h',name:dynamicName,inputValue:4},
				{boxLabel:'6-7h',  name:dynamicName,inputValue:5},
				{boxLabel:'》8',name:dynamicName,inputValue:6}		
		];
		return radioGroupItems;		
	};
	Ext.youth.moneyFromRadioBoxGroup=function(dynamicName){
		var radioGroupItems=[
				{boxLabel:'父母和他人给的',    name:dynamicName,inputValue:1,checked:true},
				{boxLabel:'通过专职工作赚来的',  name:dynamicName,inputValue:2},
				{boxLabel:'通过兼职工作赚来的',  name:dynamicName,inputValue:3},
				{boxLabel:'通过炒股票等投资方式赚来的',name:dynamicName,inputValue:4}
		];
		return radioGroupItems;		
	};
	Ext.youth.studentMoneyFromRadioBoxGroup=function(dynamicName){
		var radioGroupItems=[
				{boxLabel:'父母和长辈给的',    name:dynamicName,inputValue:1,checked:true},
				{boxLabel:'自己赚来的',  name:dynamicName,inputValue:2},
				{boxLabel:'拿些旧东西换来的',  name:dynamicName,inputValue:3},
				{boxLabel:'通过炒股票等投资方式赚来的',name:dynamicName,inputValue:4}
		];
		return radioGroupItems;		
	};		
	Ext.youth.createRadioGroup=function(dynamicLabel,dynamicName){
		var radioGroup = {
			xtype: 'radiogroup',
			fieldLabel: dynamicLabel,
			name: dynamicName,
			allowBlank: false,
			width: 400,
			items: Ext.youth.getCheckBoxGroups2(dynamicName)
		};
		return radioGroup;		
	};
	Ext.youth.createTimeUseRadioGroup=function(dynamicLabel,dynamicName){
			var radioGroup = {
			xtype: 'radiogroup',
			fieldLabel: dynamicLabel,
			name: dynamicName,
			allowBlank: false,
			width: 400,
			items: Ext.youth.timeRadioBoxGroup(dynamicName)
		};
		return radioGroup;		
	};
	
	Ext.youth.getGradeGroup=function(){
		var grade=[
						{boxLabel:'一年级',name:'person.grade',inputValue:1,checked:true},
						{boxLabel:'二年级',name:'person.grade',inputValue:2},
						{boxLabel:'三年级',name:'person.grade',inputValue:3},
						{boxLabel:'四年级',name:'person.grade',inputValue:4},
						{boxLabel:'超过四年',name:'person.grade',inputValue:5}
				];
		return	grade;
	};
	Ext.youth.getStatisticGroups=function(dynamicName){
		var timesGroup=[
							{boxLabel:'从不',name:dynamicName,inputValue:1,checked:true},
							{boxLabel:'一次',name:dynamicName,inputValue:2},
							{boxLabel:'一到三次',name:dynamicName,inputValue:3},
							{boxLabel:'四到五次',name:dynamicName,inputValue:4},
							{boxLabel:'六次以上',name:dynamicName,inputValue:5}
						];
		return timesGroup;				
	};
	Ext.youth.getPossibleGroups=function(dynamicName){
		var timesGroup=[
							{boxLabel:'非常大',name:dynamicName,inputValue:1,checked:true},
							{boxLabel:'大',name:dynamicName,inputValue:2},
							{boxLabel:'百分之五十',name:dynamicName,inputValue:3},
							{boxLabel:'小',name:dynamicName,inputValue:4},
							{boxLabel:'非常小',name:dynamicName,inputValue:5}
						];
		return timesGroup;				
	};	
	Ext.youth.getStudyGroups=function(){
		var studyGroup=[
									{boxLabel:'上游',name:'person.scoreLevel',inputValue:1,checked:true},
									{boxLabel:'中上游',name:'person.scoreLevel',inputValue:2},
									{boxLabel:'中游',name:'person.scoreLevel',inputValue:3},
									{boxLabel:'中下游',name:'person.scoreLevel',inputValue:4},
									{boxLabel:'下游',name:'person.scoreLevel',inputValue:5}
						];
		return studyGroup;
	};
	Ext.youth.getIncomeGroups=function(){
		var incomeGroup=[
									{boxLabel:'1500元以下',name:'person.homeMonthIncome',inputValue:1500,checked:true},
									{boxLabel:'1500-3000元',name:'person.homeMonthIncome',inputValue:3000},
									{boxLabel:'3000-7000元',name:'person.homeMonthIncome',inputValue:7000},
									{boxLabel:'7000元以上',name:'person.homeMonthIncome',inputValue:9000}
						];
		return incomeGroup;		
	};
	Ext.youth.getShoeGroups=function(dynamicName){
		var incomeGroup=[
									{boxLabel:'一定买双最新款的和他一样的',name:dynamicName,inputValue:1,checked:true},
									{boxLabel:'买最新款的，但不和他一样',name:dynamicName,inputValue:2, labelStyle:'width:200px'},
									{boxLabel:'买双一般的鞋就行了',name:dynamicName,inputValue:3},
									{boxLabel:'等一段时间这双鞋打了折再买',name:dynamicName,inputValue:4}
						];
		return incomeGroup;		
	};	
	Ext.youth.YesNotGroups=function(dynamicName){
		var incomeGroup=[
									{boxLabel:'会',name:dynamicName,inputValue:true,checked:true},
									{boxLabel:'不会',name:dynamicName,inputValue:false}
						];
		return incomeGroup;		
	};
	Ext.youth.createLifeStyleItems=function(dynamicLabel,dynamicName){
		var lifystyleItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:400,
								frame:true,
								allowBlank:false,
								items:Ext.youth.getStatisticGroups(dynamicName)										
							   };
		return lifystyleItem;
	};
	Ext.youth.createRelationShipItems=function(dynamicLabel,dynamicName){
		var lifystyleItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:400,
								frame:true,
								allowBlank:false,
								items:Ext.youth.getCheckBoxGroups(dynamicName)										
							   };
		return lifystyleItem;
	};	
	Ext.youth.createFutureItems=function(dynamicLabel,dynamicName){
		var lifystyleItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:400,
								frame:true,
								allowBlank:false,
								items:Ext.youth.getPossibleGroups(dynamicName)										
							   };
		return lifystyleItem;
	};
	Ext.youth.createConsumingItems=function(dynamicLabel,dynamicName){
		var consumingItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:400,
								frame:true,
								allowBlank:false,
								autoWidth:true,
								items:Ext.youth.moneyFromRadioBoxGroup(dynamicName)										
							   };
		return consumingItem;
	};	
	Ext.youth.createStudentConsumingItems=function(dynamicLabel,dynamicName){
		var consumingItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:400,
								frame:true,
								allowBlank:false,
								autoWidth:true,
								items:Ext.youth.studentMoneyFromRadioBoxGroup(dynamicName)										
							   };
		return consumingItem;
	};	
	Ext.youth.createImportenceItems=function(dynamicLabel,dynamicName){
		var consumingItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:400,
								frame:true,
								allowBlank:false,
								autoWidth:true,
								items:Ext.youth.getImportenceGroups(dynamicName)										
							   };
		return consumingItem;
	};	
	Ext.youth.createShoeItems=function(dynamicLabel,dynamicName){
		var lifystyleItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:600,
								frame:true,
								allowBlank:false,
								autoWidth:true,
								autoHeight:true,
								items:Ext.youth.getShoeGroups(dynamicName)										
							   };
		return lifystyleItem;
	};	
	Ext.youth.createRecordConsumeItems=function(dynamicLabel,dynamicName){
		var lifystyleItem=	{
								xtype:'radiogroup',
								fieldLabel:dynamicLabel,
								name:dynamicName,
								width:600,
								frame:true,
								allowBlank:false,
								autoWidth:true,
								autoHeight:true,
								items:Ext.youth.YesNotGroups(dynamicName)										
							   };
		return lifystyleItem;
	};	
	Ext.youth.createGradeItems=function(dynamicLabel,dynamicName){
		var lifystyleItem=	{
								xtype:'radiogroup',
								fieldLabel:'4、你所在的年级？',
								name:'person.grade',
								width:600,
								frame:true,
								allowBlank:false,
								autoWidth:true,
								autoHeight:true,
								items:Ext.youth.YesNotGroups(dynamicName)										
							   };
		return lifystyleItem;
	};		